import request from '@/utils/request'

// 查询服务加价配置列表
export function listMarkups(query) {
  return request({
    url: '/service/config-center/service-markups/list',
    method: 'get',
    params: query
  })
}

// 查询服务加价配置详细
export function getMarkups(id) {
  return request({
    url: '/service/config-center/service-markups/' + id,
    method: 'get'
  })
}

// 新增服务加价配置
export function addMarkups(data) {
  return request({
    url: '/service/config-center/service-markups',
    method: 'post',
    data: data
  })
}

// 修改服务加价配置
export function updateMarkups(data) {
  return request({
    url: '/service/config-center/service-markups',
    method: 'put',
    data: data
  })
}

// 删除服务加价配置
export function delMarkups(id) {
  return request({
    url: '/service/config-center/service-markups/' + id,
    method: 'delete'
  })
}
